home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
pktz_011.arc
/
PKTIZE.DOC
< prev
next >
Wrap
Text File
|
1991-06-19
|
13KB
|
532 lines
PKTize version 0.11
User guide
A Generic .PKT file generation utility
Table of contents
1 Legal notice . . . . . . . . . . . . . . . . . . . . . 1
2 Introduction . . . . . . . . . . . . . . . . . . . . . 2
3 The program . . . . . . . . . . . . . . . . . . . . . . 3
3.1 Command line options . . . . . . . . . . . . . . 3
/t<DestAddr> . . . . . . . . . . . . . . . . . . 3
/i<Input> . . . . . . . . . . . . . . . . . . . . 3
/d<Path> . . . . . . . . . . . . . . . . . . . . 3
/s<Subject> . . . . . . . . . . . . . . . . . . . 3
/e<User> . . . . . . . . . . . . . . . . . . . . 3
/r . . . . . . . . . . . . . . . . . . . . . . . 4
/a<2-10> . . . . . . . . . . . . . . . . . . . . 4
/n<2-10> . . . . . . . . . . . . . . . . . . . . 4
/m[-] . . . . . . . . . . . . . . . . . . . . . . 4
/ni . . . . . . . . . . . . . . . . . . . . . . . 4
/np . . . . . . . . . . . . . . . . . . . . . . . 5
/ns . . . . . . . . . . . . . . . . . . . . . . . 5
/b<p|c|f|k|h>[-] . . . . . . . . . . . . . . . . 5
4 The configuration file . . . . . . . . . . . . . . . . 6
AKA <address> . . . . . . . . . . . . . . . . . . 6
NAME <username> . . . . . . . . . . . . . . . . . 6
MSGBITS <msgbit> . . . . . . . . . . . . . . . . 6
PASSWORD <address> <password> . . . . . . . . . . 6
OUTPUT <directory> . . . . . . . . . . . . . . . 6
MULTIPLEMSG . . . . . . . . . . . . . . . . . . . 7
5 Input data handling . . . . . . . . . . . . . . . . . . 7
6 Revisions . . . . . . . . . . . . . . . . . . . . . . . 7
7 Support . . . . . . . . . . . . . . . . . . . . . . . . 7
PKTize User Guide
1 Legal notice
PKTize is protected by applicable copyright laws and
international treaty provisions. PKTize is provided as is,
without warranty of any kind, either expressed or implied.
Joaquim H. Homrighausen only guarantees that PKTize will
occupy disk space.
In no event shall Joaquim H. Homrighausen be liable to you or
anyone else for any damages, including any lost profits, lost
savings or other incidental or consequential damages arising
out of the use or inability to use PKTize.
PKTize is yours to keep. It is not public domain, shareware or
freeware, it is simply free of charge. You can use it provided
you do not use it within a commercial environment. It doesn't
matter if you are making money by using it or not, if you are
using it within commercial walls, you must obtain written
permission from Joaquim H. Homrighausen to use PKTize.
You may freely distribute and copy PKTize provided no fee is
charged (this includes trading) and the PKTize archive
contains unmodified copies of PKTIZE.EXE, PKTIZE.DOC,
PKTIZE.HIS, and PKTIZE.CFG.
All Joaquim H. Homrighausen products are trademarks or
registered trademarks of Joaquim H. Homrighausen. Other brand
and product names are trademarks or registered trademarks of
their respective holders.
Copyright 1991 Joaquim H. Homrighausen. All rights reserved.
1
PKTize User Guide
2 Introduction
PKTize is a utility which will allow you to create FidoNet
compatible mail packets. You do not have to know what is
involved nor do you have to understand the binary format of a
mail packet in order to use PKTize; you simply have to provide
the required parameters. PKTize creates 100% FTSC-001
compatible mail packets; it utilizes the FSC-039
specifications to provide a more complete addressing scheme
than that found in FTSC-001.
I wrote PKTize because I frequently have to test code that
unpack mail packets and I was getting sick of creating test
messages, packing them using a FidoNet mailer or conference
mail package, etc. Another obvious use is to provide a simple
mechanism for programs, running as a service request under
mailers, to generate mail packets which will be unpacked to
messages at the remote site instead of having to send several
small ASCII (text) files.
2
PKTize User Guide
3 The program
PKTize can be executed from the DOS command line, by another
program, and/or from a DOS batch (.BAT) file. PKTize requires
somewhere between 25 and 35KB. It will return two different
errorlevels: 0=OK and 1=Failure to complete. Few errors are
possible; short of running out of diskspace and invalid or
missing input files, PKTize should operate as instructed to.
3.1 Command line options
/t<DestAddr>
The address to which the mail packet and the packed
messages should be addressed. A fully qualified
FidoNet-style address (ie. 2:201/329) is required as
no default address handling exists.
/i<Input>
One or more names of files that should be used to
generate the message text. This can optionally be the
name of a single response file in the format
@filename.ext. The response file must contain one
filename per line. If more than one name is specified,
they should be separated by a comma (eg. -Ifil1,fil2).
/d<Path>
Used to override the default destination (output)
directory for PKTize. Unless this is used, the
directory specified after the OUTPUT option in
PKTIZE.CFG will be used for the created mail packets.
/s<Subject>
The text to be placed in the "Re:" (Subject) field of
the generated message(s). The default text is a single
dot (.). Use the underscore (_) character, instead of
spaces, to separate words (eg. -SHi_there).
/e<User>
The text to be placed in the "To:" field of the
generated message(s). The default text is "SysOp". Use
the underscore (_) character, instead of spaces, to
separate words (eg. -EJohn_Doe).
3
PKTize User Guide
/r
Specifies that you want PKTize to remove the input
files after it has processed them. Note that the
file(s) will be removed even if they could not be
successfully opened/processed. The response file (if
any) will not be removed by using this option.
/a<2-10>
Use the specified AKA (Also Known As) address rather
than the primary address as the originating address.
/n<2-10>
Use the specified NAME slot (in PKTIZE.CFG) rather
than the primary name in the "By:" field of messages.
/m[-]
Unless the MULTIPLEMSG option has been enabled in
PKTIZE.CFG, the default behavior of PKTize is to
'bundle' all input files into one message. By using
MULTIPLEMSG in PKTIZE.CFG or -M on the command line,
you tell PKTize to generate one message per input
file. Note that this does not affect the number of
mail packets that PKTize will create (which is always
one).
/ni
PKTize will create ^aINTL information if:
* The destination address' zone is
different than the originating (yours)
address' zone.
* If you have specified another AKA than
the primary address (-A<nn>).
Only use this option if you do not want any ^aINTL
information in the message(s).
4
PKTize User Guide
/np
PKTize will create extended point information if the
originating (^aFMPT) address contains a point (other
than zero) or if the destination address (^aTOPT)
contains a point (other than zero). Use this option if
you do not want PKTize to insert extended point
information even if these conditions are met.
/ns
Normally, PKTize will remove all <SoftCR> characters
(ASCII 141) from the input data. This may, however,
not be desireable in all situations. By using -NS, you
force PKTize to retain any <SoftCR> character in the
input data.
/b<p|c|f|k|h>[-]
Used to override the MSGBITS option in PKTIZE.CFG.
P=Private, C=Crash, F=File, K=Kill/Sent, and H=Hold.
Only one attribute may be specified per -B option. If
you want to set/reset more than one attribute bit, you
must use multiple -B options.
NOTE: Both the / (slash) and - (dash) characters are legal
command line switch characters.
5
PKTize User Guide
4 The configuration file
PKTize retrieves its default options from a file called
PKTIZE.CFG. This file has to reside in the same directory as
PKTIZE.EXE. A sample configuration file is included in the
distribution archive.
AKA <address>
Defines a network address in FTSC-001 format
'z:n/n.p@d' where '@d' (domain) is optional. A maximum
of 10 AKA statements are supported.
NAME <username>
Defines a username to be used in the "By:" field of a
message. Use the underscore (_) character, instead of
spaces, to separate words. A maximum of 10 NAME
statements are supported.
MSGBITS <msgbit>
Defines a message attribute bit as part of the default
message attribute. This can be overriden by the -B
command line switch. Allowed bits are PRIVATE,
KILL/SENT, CRASH, HOLD, and FILE. Only one bit may be
specified per MSGBITS line. If you want to set more
than one bit, you must use multiple MSGBITS lines.
PASSWORD <address> <password>
Defines a packet level password for the specified
system. Whenever PKTize generates a packet for a
system listed in a PASSWORD line in PKTIZE.CFG, the
specified password will automatically be inserted into
the packet header. A maximum of 50 PASSWORD lines are
allowed and a maximum of eight characters per
password. Passwords are case sensitive. Use the
underscore (_) character, instead of spaces, to
separate words.
OUTPUT <directory>
Defines the default output directory to which PKTize
will write the generated mail packets. This can be
overriden with the -D command line switch.
6
PKTize User Guide
MULTIPLEMSG
Unless this option is used, the default behavior of
PKTize is to 'bundle' all input files into one
message. By using this option or -M on the command
line, you tell PKTize to generate one message per
input file. Note that this does not affect the number
of mail packets that PKTize will create (which is
always one).
5 Input data handling
PKTize will strip all characters in the range ASCII 0 through
ASCII 31 except ASCII 13, which is a <CR>, from the input
data. PKTize will by default also strip <SoftCR> (ASCII 141)
characters, this can, however, be overriden with the -NS
command line switch as previously explained.
6 Revisions
The file PKTIZE.HIS contains important notes and revisions.
7 Support
While there is no specific technical support available for
this program, you can always send me a message if you are
having problems and/or want to make suggestions or comments.
You can send mail to me on:
2:270/17@fidonet
joho@fido.rmi.de
7